package com.example.guet_assistant.service;

import com.example.guet_assistant.domain.vo.MessageVO;
import com.example.guet_assistant.domain.vo.ReturnMessageVO;
import com.example.guet_assistant.pojo.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.guet_assistant.pojo.entity.MessageType;
import com.example.guet_assistant.pojo.entity.User;
import com.example.guet_assistant.result.Result;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author Lenovo
* @description 针对表【message】的数据库操作Service
* @createDate 2024-11-03 15:54:28
*/
public interface MessageService extends IService<Message> {
    Result getWeather()  throws  Exception ;

    List<Message> publishMessage(MessageVO messageVO) throws Exception;

    Result<Message> regularMessage(Message message) throws Exception;

    List<Message> findMessagesToPublish(String currentTime) throws Exception;

    Result<List<String>> getMessageType() throws Exception;

    Result<List<ReturnMessageVO>> getTitleList(String userId, String type) throws Exception;

    Result<List<String>> getMessageList(Integer id, String title) throws Exception;
}
